package com.avantis.common.msg;

import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName PageResult
 * @Description 后台翻页响应数据
 * @Author kirago
 * @Date 2018/11/26 19:39
 * @Version 1.0
 **/
@Data
public class PageResult<T> implements Serializable {

	private String draw;//表示请求次数

	private Long recordsTotal;//总记录数

	private Long recordsFiltered;//过滤后的总记录数

	private T data;//具体的数据

	public PageResult(String draw, Long recordsTotal, Long recordsFiltered, T data) {
		this.draw = draw;
		this.recordsTotal = recordsTotal;
		this.recordsFiltered = recordsFiltered;
		this.data = data;
	}

}

